﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestConsole
{
    public class Translate<T>
    {
        /// <summary>
        /// Translate array to list item
        /// </summary>
        /// <param name="arr"></param>
        /// <returns></returns>
        public static List<T> ArrayToList(T[] arr)
        {
            List<T> lst = new List<T>();
            foreach (var item in arr)
            {
                lst.Add(item);
            }
            return lst;
        }
    }
}
